package com.kingdee.pda.ui.scan_inwarehouse;

import com.kingdee.pda.entity.SnlistBean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author：dlj
 * @data：2021/11/10 15:23
 * @des：
 */
public class ScanReceiveOrderBean implements Serializable {

    private List<AsnListBean> asnList;

    private List<AsnLinkAfterOrderSnVo> linkAfterOrderSnList;

    private boolean snboolean;

    public boolean isSnboolean() {
        return snboolean;
    }

    public void setSnboolean(boolean snboolean) {
        this.snboolean = snboolean;
    }

    public List<AsnListBean> getAsnList() {
        return asnList;
    }

    public void setAsnList(List<AsnListBean> asnList) {
        this.asnList = asnList;
    }

    public List<AsnLinkAfterOrderSnVo> getLinkAfterOrderSnList() {
        if (linkAfterOrderSnList == null) {
            return new ArrayList<>();
        }
        return linkAfterOrderSnList;
    }

    public void setLinkAfterOrderSnList(List<AsnLinkAfterOrderSnVo> linkAfterOrderSnList) {
        this.linkAfterOrderSnList = linkAfterOrderSnList;
    }

    public static class AsnListBean implements Serializable {
        /**
         * billid : 1286792336881246208
         * billno : ASN-20211111-00002775
         * typein : null
         * warehouse : 永旺仓
         * warehouseId : 1231182862930172928
         * warehouseareaname : 收货区
         * warehouselocationname : 收货库位
         * upstreambillno :
         * externalbillno :
         * remark :
         * detail : [{"seq":1,"detailid":"1286792814276928512","skuid":"1201387885186532352","skucode":"orange","skuname":"橙子","spucode":"orange","spuname":"橙子","skubarcode":["orange"],"palnqty":1,"receiptedqty":0,"ownertype":"核算组织","ownertypecode":"bos_org","ownername":"苍穹电商云测试组","ownerid":"1217341292057503744","sn":"OFF","scannedqty":0,"invstatus":"可用","invtype":null}]
         */

        private String billid;
        private String billno;

        private String scanbillno;//后台参数接收用,和billno仅字段名称不同(非后台返回)
        private String id;//后台参数接收用,和billid仅字段名称不同(非后台返回)

        private String typein;
        private String warehouse;
        private String warehouseId;
        private String warehouseareaname;
        private String warehouselocationname;
        private String upstreambillno;
        private String externalbillno;
        private String remark;
        private List<DetailBean> detail;
        private String type;//后台标识pda操作使用，传1

        public String getType() {
            return type == null ? "" : type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getScanbillno() {
            return scanbillno == null ? "" : scanbillno;
        }

        public void setScanbillno(String scanbillno) {
            this.scanbillno = scanbillno;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getBillid() {
            return billid;
        }

        public void setBillid(String billid) {
            this.billid = billid;
        }

        public String getBillno() {
            return billno;
        }

        public void setBillno(String billno) {
            this.billno = billno;
        }

        public String getTypein() {
            return typein;
        }

        public void setTypein(String typein) {
            this.typein = typein;
        }

        public String getWarehouse() {
            return warehouse;
        }

        public void setWarehouse(String warehouse) {
            this.warehouse = warehouse;
        }

        public String getWarehouseId() {
            return warehouseId;
        }

        public void setWarehouseId(String warehouseId) {
            this.warehouseId = warehouseId;
        }

        public String getWarehouseareaname() {
            return warehouseareaname;
        }

        public void setWarehouseareaname(String warehouseareaname) {
            this.warehouseareaname = warehouseareaname;
        }

        public String getWarehouselocationname() {
            return warehouselocationname;
        }

        public void setWarehouselocationname(String warehouselocationname) {
            this.warehouselocationname = warehouselocationname;
        }

        public String getUpstreambillno() {
            return upstreambillno;
        }

        public void setUpstreambillno(String upstreambillno) {
            this.upstreambillno = upstreambillno;
        }

        public String getExternalbillno() {
            return externalbillno;
        }

        public void setExternalbillno(String externalbillno) {
            this.externalbillno = externalbillno;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public List<DetailBean> getDetail() {
            return detail;
        }

        public void setDetail(List<DetailBean> detail) {
            this.detail = detail;
        }

        public static class DetailBean implements Serializable {
            /**
             * seq : 1
             * detailid : 1286792814276928512
             * skuid : 1201387885186532352
             * skucode : orange
             * skuname : 橙子
             * spucode : orange
             * spuname : 橙子
             * skubarcode : ["orange"]
             * palnqty : 1.0
             * receiptedqty : 0.0
             * ownertype : 核算组织
             * ownertypecode : bos_org
             * ownername : 苍穹电商云测试组
             * ownerid : 1217341292057503744
             * sn : OFF
             * scannedqty : 0.0
             * invstatus : 可用
             * invtype : null
             */
            private String scanbillno;//该明细对应的ASN单号(非后台返回)
            private String id;//该明细对应的 ASN单 ID(非后台返回)

            private int seq;
            private String detailid;

            private String skuid;
            private String skucode;
            private String skuname;
            private String spucode;
            private String spuname;

            private int palnqty;//计划数量
            private int receiptedqty;//已收数量
            private String ownertype;
            private String ownertypecode;
            private String ownername;
            private String ownerid;
            private String owner = ownerid;//后台货主ID参数接收用的owner，我们直接将ownerid赋值给他(非后台返回)
            private String sn;
            private int scannedqty;//前端扫描数量
            private String invstatus;
            private Object invtype;
            private List<String> skubarcode;

            public String getScanbillno() {
                return scanbillno == null ? "" : scanbillno;
            }

            public void setScanbillno(String scanbillno) {
                this.scanbillno = scanbillno;
            }

            public String getId() {
                return id == null ? "" : id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getOwner() {
                return owner = ownerid;
            }

            /**
             * 扫描的 sn 码信息
             */
            private List<SnlistBean> snlist = new ArrayList<>();

            public List<SnlistBean> getSnlist() {
                if (snlist == null) {
                    return new ArrayList<>();
                }
                return snlist;
            }

            public void setSnlist(List<SnlistBean> snlist) {
                this.snlist = snlist;
            }

            public int getSeq() {
                return seq;
            }

            public void setSeq(int seq) {
                this.seq = seq;
            }

            public String getDetailid() {
                return detailid;
            }

            public void setDetailid(String detailid) {
                this.detailid = detailid;
            }

            public String getSkuid() {
                return skuid;
            }

            public void setSkuid(String skuid) {
                this.skuid = skuid;
            }

            public String getSkucode() {
                return skucode;
            }

            public void setSkucode(String skucode) {
                this.skucode = skucode;
            }

            public String getSkuname() {
                return skuname;
            }

            public void setSkuname(String skuname) {
                this.skuname = skuname;
            }

            public String getSpucode() {
                return spucode;
            }

            public void setSpucode(String spucode) {
                this.spucode = spucode;
            }

            public String getSpuname() {
                return spuname;
            }

            public void setSpuname(String spuname) {
                this.spuname = spuname;
            }

            public int getPalnqty() {
                return palnqty;
            }

            public void setPalnqty(int palnqty) {
                this.palnqty = palnqty;
            }

            public int getReceiptedqty() {
                return receiptedqty;
            }

            public void setReceiptedqty(int receiptedqty) {
                this.receiptedqty = receiptedqty;
            }

            public String getOwnertype() {
                return ownertype;
            }

            public void setOwnertype(String ownertype) {
                this.ownertype = ownertype;
            }

            public String getOwnertypecode() {
                return ownertypecode;
            }

            public void setOwnertypecode(String ownertypecode) {
                this.ownertypecode = ownertypecode;
            }

            public String getOwnername() {
                return ownername;
            }

            public void setOwnername(String ownername) {
                this.ownername = ownername;
            }

            public String getOwnerid() {
                return ownerid;
            }

            public void setOwnerid(String ownerid) {
                this.ownerid = ownerid;
            }

            public String getSn() {
                return sn;
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public int getScannedqty() {
                return scannedqty;
            }

            public void setScannedqty(int scannedqty) {
                this.scannedqty = scannedqty;
            }

            public String getInvstatus() {
                return invstatus;
            }

            public void setInvstatus(String invstatus) {
                this.invstatus = invstatus;
            }

            public Object getInvtype() {
                return invtype;
            }

            public void setInvtype(Object invtype) {
                this.invtype = invtype;
            }

            public List<String> getSkubarcode() {
                return skubarcode;
            }

            public void setSkubarcode(List<String> skubarcode) {
                this.skubarcode = skubarcode;
            }
        }
    }

    public class AsnLinkAfterOrderSnVo implements Serializable {
        private String warehouseId;
        private String ownertypecode;
        private String ownerid;
        private String skuid;
        private String sncode;

        public String getWarehouseId() {
            return warehouseId == null ? "" : warehouseId;
        }

        public void setWarehouseId(String warehouseId) {
            this.warehouseId = warehouseId;
        }

        public String getOwnertypecode() {
            return ownertypecode == null ? "" : ownertypecode;
        }

        public void setOwnertypecode(String ownertypecode) {
            this.ownertypecode = ownertypecode;
        }

        public String getOwnerid() {
            return ownerid == null ? "" : ownerid;
        }

        public void setOwnerid(String ownerid) {
            this.ownerid = ownerid;
        }

        public String getSkuid() {
            return skuid == null ? "" : skuid;
        }

        public void setSkuid(String skuid) {
            this.skuid = skuid;
        }

        public String getSncode() {
            return sncode == null ? "" : sncode;
        }

        public void setSncode(String sncode) {
            this.sncode = sncode;
        }
    }
}
